// // 自定义覆盖物
class CustomRichMarker extends BMapLib.RichMarker {
  constructor(map, content, { data, point, infoBox }, opts) {
    super(content, point, opts);
    this.map = map;
    this.data = data || {};
    this.point = point;
    this.infoBox = infoBox || null;
    this.icon = opts.icon || null;
  }

  getIcon() {
    return this.icon;
  }

  setIcon(icon) {
    this.icon = icon;
  }

  getOffset() {
    // return this.getAnchor();
    return { height: 0, width: 0 };
  }

  getMap() {
    return this.map;
  }
}
export default CustomRichMarker;
